import requests


def get_type(self):
    t.generateMd5()
    url5 = "http://open.dairphone.cn/device/config_list"
    data5 = {
        "check_code": self.check_code,
        "time": self.timestamp,
        "sn": "SMIT3B2019816000090",
        "version": "3.4.0"
    }
    result5 = requests.post(url5, data=data5, headers=self.headers)
    results5 = result5.json()
    self.device_type = results5['data']['device_type']